package jspx.example.dao.impl;

import com.github.jspxnet.sioc.annotation.Bean;
import com.github.jspxnet.sober.annotation.SqlMap;
import com.github.jspxnet.sober.jdbc.JdbcOperations;
import jspx.example.dao.DBMapDAO;
import jspx.example.env.DemoIoc;
import jspx.example.table.Employee;

import java.util.List;
import java.util.Map;

@Bean(namespace = DemoIoc.namespace)
public class DBMapDAOImpl extends JdbcOperations implements DBMapDAO {

    @Override
    @SqlMap
    public List<Employee> getList(Map<String, Object> valueMap, int currentPage, int count)
    {
        valueMap.put("employeeTable",getTableName(Employee.class));
        return null;
    }

    @Override
    @SqlMap
    public List<Employee> getListVersion(Map<String, Object> valueMap, int currentPage, int count)
    {
        valueMap.put("employeeTable",getTableName(Employee.class));
        return null;
    }
}
